package com.annarborales.billsuofm;


public abstract class Temperature {
	enum Units { Farenheit, Celcius, Kelvin }
	double value;

	public Temperature(Temperature temperature) {
		value = temperature.value;
	}

	public Temperature(double value) {
		this.value = toCelsius(value);
	}
	public double getValue() {
		return fromCelsius(value);
	}
	
	public void setValue(double value) {
		this.value = toCelsius(value);
	}
	
	abstract double toCelsius(double value);
	abstract double fromCelsius(double value);

}
